//
//  tool.h
//  MGameTribe
//
//  Created by 杨敏 on 13-7-1.
//  Copyright (c) 2013年 YangMin. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor(Tool)

/**
 * Returns an UIColor with random RGB values.
 */
+ (UIColor *)randomColor;

/**
 * Returns an UIColor created from the Hexadecimal value.
 */
+ (UIColor *)colorWithHex:(UInt32)hex;

/**
 * Creates an UIColor with RGB. No need to /255.0!
 */
+ (UIColor *)colorWithR:(CGFloat)red G:(CGFloat)green B:(CGFloat)blue Alpha:(CGFloat)alpha;



- (UIColor *)lighterColor;
- (UIColor *)darkerColor;
@end
